package twentyThreePattern.StructuralPattern7.proxy.DynamicProxy.section3;

public class Client {

	public static void main(String[] args) {
		// 定义一个主题
		Subject subject = new RealSubject();
		// 定义主题的代理
		Subject proxy = SubjectDynamicProxy.newInstance(subject);
		// 代理的行为
		proxy.doSomething("实现aop通知");
	}

}
